home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / clean / sun3.lha / Sun3 / cgopt.man < prev    next >
Text File  |  1992-08-07  |  1KB  |  37 lines

  1. cgopt [options] file_name
  2.  
  3.     Generates an object file containing the size of the heap and stack and the
  4.     flags.
  5.     Usually cgopt is not used, because clm generates this object file. But
  6.     if you do not want to use clm, but compile using cocl, cg and the assembler
  7.     and then link using cc or ld, cgopt can be used to generate this object file.
  8.  
  9.     The default sizes and flags are:
  10.  
  11.       heap size = 2m, stack size = 512k, show execution times.
  12.  
  13.     Options are:
  14.  
  15.       -h size     heapsize is 'size' bytes.
  16.       -s size     stack size is 'size' bytes. (stack size of A stack on sun3)
  17.       -b          basic only.
  18.       -sc         show constructors.
  19.       -t          show execution times.
  20.       -nt         don't show execution times.
  21.       -gc         show heap size after garbage collection.
  22.       -ngc        don't show heap size after garbage collection.
  23.       -st         show stack sizes before garbage collection.
  24.       -nst        don't show stack sizes before garbage collection.
  25.  
  26.     These options can also be used for applications.
  27.  
  28. To generate an application using cc, cc should be called with option -N and
  29.     the following files (in this order):
  30.     1   _startup.o
  31.     2   _system.o
  32.     3   the object file of the main module of your clean program
  33.     4   the object files of other modules of your clean program and the delta
  34.         rules used by your clean program (if any)
  35.     5   the object file generated by cgopt.
  36.     6   _reals.o and option -lm. (sun4 only)
  37.